/*
 * MIT License
 *
 * Copyright (C) 2021 Huawei Device Co., Ltd.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANT KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

#ifndef HARMONY_CLIP_PATH_VIEW_SRC_MAIN_CPP_PROPS_H
#define HARMONY_CLIP_PATH_VIEW_SRC_MAIN_CPP_PROPS_H

#include <jsi/jsi.h>
#include <react/renderer/components/view/ViewProps.h>
#include <react/renderer/core/PropsParserContext.h>
#include <react/renderer/core/propsConversions.h>

#include <vector>
#include <boost/json.hpp>
namespace facebook {
    namespace react {


        class JSI_EXPORT RNCClipPathViewProps final : public ViewProps {
        public:
            RNCClipPathViewProps() = default;
            RNCClipPathViewProps(const PropsParserContext &context, const RNCClipPathViewProps &sourceProps,
                                 const RawProps &rawProps);

#pragma mark - Props
            std::string d;
            float opacity = 1.0f;
            bool opacityStatus = false;
            std::string mask = "/0";
            std::string oldMask = "/0";
            int fillColor = 0x000000;
            bool fillColorStatus = false;
            float fillOpacity = 1.0f;
            bool fillOpacityStatus = false;
            std::string fillRule = "/0";
            bool fillRuleStatus = false;
            int strokeColor{0x00000000};
            bool strokeColorStatus{false};
            float strokeOpacity{1.0};
            bool strokeOpacityStatus{false};
            float strokeWidth{1.0};
            bool strokeWidthStatus{false};
            std::string strokeCap{"none"};
            std::string strokeJoin{"none"};
            float strokeMiter{4.0};
            bool strokeMiterStatus{false};
            float strokeStart{0.0};
            bool strokeStartStatus{false};
            float strokeEnd{1.0};
            bool strokeEndStatus{false};
            int shadowColor{0x000000};
            bool shadowColorStatus{false};
            float shadowOpacity{0.0};
            bool shadowOpacityStatus{false};
            float shadowRadius{2.0};
            bool shadowRadiusStatus{false};
            float shadowOffsetX{2.0};
            float shadowOffsetY{2.0};
            bool shadowOffsetIsPercent{false};
            bool shadowOffsetStatus{false};

            float translationX = 0.f;
            float translationY = 0.f;
            bool translationIsPercent = false;
            float rotation = 0.f;
            float rotationOx = 0.f;
            float rotationOy = 0.f;
            bool rotationIsPercent = false;
            float scale = 1.f;
            float scaleX = 1.f;
            float scaleY = 1.f;
            float scaleOrigin = 0.f;
            float scaleOriginX = 0.f;
            float scaleOriginY = 0.f;
            bool scaleIsPercent = false;
            int bgColor{0x00000000};

            std::string align{"xMidYMid"};
        };
    } // namespace react
} // namespace facebook
#endif
